﻿@model Seven.DataModel.ViewModels.DeskModuleAbout.UserDeskModuleModel

<script src="~/Scripts/views/DeskModule/UserDeskModuleForm.js"></script>
<form id="UserDeskModule-Form">
    <div class="div_center">
        <fieldset>
            <legend class="panel-title">桌面模块信息</legend>
            @Html.HiddenFor(m => m.ID)
            @Html.Hidden("OriginalLocation", Model.Location)
            @Html.HiddenFor(m => m.DeskModuleID)
            <table class="TableBlock">
                <tr>
                    <td class="TableLabel">
                        名称：
                    </td>
                    <td class="TableData">
                        @Model.DeskModuleName
                    </td>
                    <td class="TableLabel">
                        排序号：
                    </td>
                    <td class="TableData">
                        @Html.TextBoxFor(model => model.SortNumber)
                    </td>
                </tr>
                <tr>
                    <td class="TableLabel">
                        控制类型：
                    </td>
                    <td class="TableData">
                        @Model.ControlType
                    </td>
                    <td class="TableLabel">
                        位置：
                    </td>
                    <td class="TableData">
                        @Html.TextBoxFor(model => model.Location)
                    </td>
                </tr>
                <tr>
                    <td class="TableLabel">
                        高度：
                    </td>
                    <td class="TableData">
                        @Html.TextBoxFor(model => model.Height)
                    </td>
                    <td class="TableLabel">
                        条数：
                    </td>
                    <td class="TableData">
                        @Html.TextBoxFor(model => model.Size)
                    </td>
                </tr>
                <tr>
                    <td class="TableLabel">
                        消息：
                    </td>
                    <td class="TableData">
                        @Html.RadioButtonFor(model => model.ReceiveMessage, true) 接收
                        @Html.RadioButtonFor(model => model.ReceiveMessage, false) 不接收
                    </td>
                    @if (Model.ControlType == Seven.EntityBasic.DeskModuleControlType.用户可选)
                    {
                        <td class="TableLabel">
                            是否显示：
                        </td>
                        <td class="TableData">
                            @Html.RadioButtonFor(model => model.IsShow, true) 是
                            @Html.RadioButtonFor(model => model.IsShow, false) 否
                        </td>
                    }
                    else
                    {
                        @Html.HiddenFor(m => m.IsShow)
                    }
                </tr>
            </table>
        </fieldset>
    </div>
</form>

<script>
    $(function () {
        window.views.DeskModule.UserDeskModuleForm.initPage("UserDeskModule-Form");
    });
</script>